<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
		foreach ($ph as $op) {
			$p = $op['ph_file'];
			$n = $op['ph_id'];
			$page['pg_id'] = $id;
			$page['pg_title'] = $title;
			$path = "./uploads/ph/".$page['pg_id']."/small/".$p;
			$small = "/uploads/ph/".$page['pg_id']."/small/".$p;
			$big = "/uploads/ph/".$page['pg_id']."/".$p;
			$im = getimagesize($path);
			$padding = round((150 - $im[1]) / 2);
			echo "<a href='".$big."' rel='pretty[".$page['pg_id']."]' class='ph'>";
				echo "<img src='".$small."' alt='".$page['pg_title']." #".$n."' title='".$page['pg_title']." #".$n."' />";
			echo "</a>";
		}
		echo "<br class='cc' />";
?>